home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.345 < prev    next >
Text File  |  1992-02-06  |  1KB  |  30 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fswiss Helvetica;}
  2. \paperw12180
  3. \paperh8420
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 window display\
  8. \
  9. Q: How do I display a new window I created programmatically?\
  10. \
  11. A: If you allocate a window and initialize it with the 
  12. \b init
  13. \b0  method, that window, by default, has display disabled.  When display is disabled, the window appears on-screen without a title and its contentView is white.  You must send it a 
  14. \b display
  15. \b0  message to get things going (e.g., so that it will draw itself properly). Simply sending it an 
  16. \b orderFront
  17. \b0 : is not sufficient. \
  18. \
  19. If your window is allocated and initialized with the 
  20. \b initContent:style:backing:buttonMask:defer:
  21. \b0  method, display is disabled only if the defer flag is set to NO.  If it's YES, the window will look fine when it gets the 
  22. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fc0 orderFront
  23. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0 : message.\
  24. \
  25. QA345\
  26. \
  27. Valid for 2.0\
  28. \
  29.  
  30.